package com.project.restaurant.user.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class EmailAuthCodeParam {

    /**
     * 前端传来，进行登录的邮箱
     */
    @ApiModelProperty(value = "邮箱",required = true)
    @NotEmpty
    private String email;

    /**
     * 前端传来的邮箱验证码，这个验证码是发送到邮箱那边的那个验证码
     */
    @ApiModelProperty(value = "邮箱验证码",required = true)
    @NotEmpty
    private String authCode;

}
